<aside class="main-sidebar">
  <% const nav = [{
    title: '首页',
    icon: 'glyphicon-home',
    path: '/',
    target: ''
  },{
    title: '订单管理',
    icon: 'glyphicon-list-alt',
    path: '/order',
    target: ''
  },{
    title: '数据面板',
    icon: 'glyphicon-stats',
    path: '/dashboard',
    target: "_blank"
  },{
    title: '人员管理',
    icon: 'glyphicon-user',
    path: '/user',
    target: ''
  },{
    title: '提成计算',
    icon: 'glyphicon-yen',
    path: '/commission',
    target: ''
  },{
    title: '客户管理',
    icon: 'glyphicon-briefcase',
    path: '/customer',
    target: ''
  },{
    title: '设置',
    icon: 'glyphicon-cog',
    path: '/setting',
    target: ''
  }] %>
  <section class="sidebar">
    <ul class="sidebar-menu" data-widget="tree">
      <% for(let i=0;i<nav.length;i++){ %>
        <li class="<%- i===index ? 'active' : '' %>"><a target="<%= nav[i].target %>" href="<%= nav[i].path %>"><i class="glyphicon <%= nav[i].icon %>"></i> <span><%= nav[i].title %></span></a></li>
      <% } %>
    </ul>
  </section>
</aside>